package org.nanotek.lucene.query.result.document;

import java.util.HashMap;
import java.util.Map;

import org.nanotek.Base;
import org.nanotek.base.Stamp;

@SuppressWarnings("serial")
public class DocumentBase extends Stamp implements Base<Long> {

	private Long id; 
	private Map<String, Base<?>> fields; 
	
	public DocumentBase() {
		this.stamp = System.nanoTime();
		fields = new HashMap<String,Base<?>>();
	}
	
	@Override
	public Long getId() {
		return id;
	}

	@Override
	public void setId(Long id) {
		this.id = id;
	}

	public Map<String, Base<?>> getFields() {
		return fields;
	}

}
